<template>
  <div class="goodslist">
    <van-card
      v-for="item in goodsList[0]"
      :key="item.proid"
      :price="item.originprice"
      :title="item.proname"
      :thumb="item.img1"
    />
  
   
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  data() {
    return {
      goodsList: [],
    };
  },
  created() {
    this.goodslist();
  },
  methods: {
    async goodslist() {
      const res = await this.$http.GetCommodity();
      this.goodsList.push(res.data.data);
      console.log(this.goodsList[0]);
    },
  },
};
</script>
<style lang="scss" scoped></style>
